package com.bymboy.emos.wx.db.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @Package: com.bymboy.emos.wx.db.pojo
 * @ClassName: MessageEntity
 * @Author: My
 * @CreateTime: 2021/9/28 14:18
 * @Description:
 */
@Data
@Document(collection = "message")
public class MessageEntity implements Serializable {

    @Id
    private String _id;

    @Indexed(unique = true)
    private String uuid;

    @Indexed
    private Integer senderId;

    private String senderPhoto = "https://emos-wx-1307576185.cos.ap-nanjing.myqcloud.com/img/header/1.jpg";

    private String senderName;

    @Indexed
    private Date sendTime;

    private String msg;
}
